/***********************************
 * Author: Nikhil Kishore
 * Date: July 11, 2014
 * Description: Testing baron card
**********************************/


#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "rngs.h"



int main(int argc, char const *argv[]){

	struct gameState game;
     
	int myCard = baron;
        int myChoice1 = -1;
        int myChoice2 = -1;
        int myChoice3 = -1;
        int myHandPos = -1;
        int* myBonus = 0;
        int testValue;
        int testSwitch = 0;

        int testnumBuys = game.numBuys;
      
        testValue = cardEffect(myCard, myChoice1, myChoice2, myChoice3, &game    , myHandPos, myBonus);
	
	if (testValue == -1){	   
	   printf("Error: cardTest4 [cardEffect()] returned a -1.\n");	   
	   testSwitch = 1;			 
	}			  
	else if (testValue == 0){	
	   if (game.numBuys == (testnumBuys + 1)){	 
	      printf("baron card successfully played.");	      
	   }	   
	}
	
	if (testSwitch == 0)	
	   printf("cardtest4 [baronCard()] shows no errors.\n");
				   	
	return 0;
}

